package com.ruoyi.system.service;

import com.ruoyi.system.entity.AlarmPerimeterRecord;

import java.util.List;

/**
 * (AlarmPerimeterRecord)表服务接口
 *
 * @since 2023-04-21 15:35:21
 */
public interface AlarmPerimeterRecordService {

    /**
     * 通过ID查询单条数据
     *
     * @return 实例对象
     */
    AlarmPerimeterRecord queryById(String sn);

    Integer countAlarmPerimeterRecord(AlarmPerimeterRecord alarmPerimeterRecord);

    /**
     * 分页查询
     *
     * @return 查询结果
     */
    List<AlarmPerimeterRecord> queryByPage(AlarmPerimeterRecord alarmPerimeterRecord, int pageNum, int pageSize);

    /**
     * 新增数据
     *
     * @param alarmPerimeterRecord 实例对象
     * @return 实例对象
     */
    AlarmPerimeterRecord insert(AlarmPerimeterRecord alarmPerimeterRecord);

    /**
     * 修改数据
     *
     * @param alarmPerimeterRecord 实例对象
     * @return 实例对象
     */
    AlarmPerimeterRecord update(AlarmPerimeterRecord alarmPerimeterRecord);

    /**
     * 通过主键删除数据
     *
     * @return 是否成功
     */
    boolean deleteById(String sn);

}
